package com.example.springboot_system.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author XueGuiSheng
 * @date 2020/3/23
 * @description: 科室表
 */
@Data
@TableName("his_department")
public class Department {

    @Column(name = "id")
    private String id;

    @Column(name = "code")
    private Integer code;

    @Column(name = "address")
    private String address;

    @Column(name = "name")
    private String name;

    /*名称，地址拼音缩写*/
    @Column(name = "name_code")
    private String nameCode;

    /*0普通 1急诊*/
    @Column(name = "type",nullable = false)
    private int type;

    @Column(name = "create_datetime")
    private Date createDatetime;
}
